package com.chenwy.example.configuration;
import org.hibernate.engine.transaction.jta.platform.internal.AbstractJtaPlatform;
import javax.transaction.TransactionManager;
import javax.transaction.UserTransaction;
/**
 * Created by Administrator on 2019/5/7.
 */
public class AtomikosJtaPlatform extends AbstractJtaPlatform {

    static TransactionManager transactionManager;

    static UserTransaction userTransaction;

    @Override
    protected TransactionManager locateTransactionManager() {
        return transactionManager;
    }

    @Override
    protected UserTransaction locateUserTransaction() {
        return userTransaction;
    }


}
